using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MeleeWeapon:Weapon {
	public MeleeWeapon(WeaponData stat) : base(stat) { }

	public override Vector2 muzzlePosition => Vector2.right*0.5f*(Angle)state.aimAngle;
	public override Vector2 muzzleWorldPosition => (Vector2)slot.transform.position+muzzlePosition;

	public override void Update() {
		base.Update();
		slot.muzzle.position=muzzleWorldPosition;
		slot.muzzle.rotation=state.aimAngle.quaternion;
	}
}
